 |
API Documentation
|
|
41 class DLL_EXPORT_EXPORT
Node final
unsigned int getValueAsUint() const
std::string_view getMemberKey(unsigned int index)
std::string_view getValueAsString() const
void setAsFloat(float value)
void setAsBool(bool value)
float getValueAsFloat() const
@ EMPTY_NATURE
Represents an empty node.
Definition: Node.h:29
void setAsUint(unsigned int value)
void setAsString(const std::string_view &value)
Node * addMember(const std::string_view &key)
@ FLOAT_TYPE
A node holding a float.
Definition: Node.h:20
@ DOUBLE_TYPE
A node holding a double.
Definition: Node.h:21
void deleteMember(const std::string_view &key)
Encompasses all API of component NilkinsExport.
Definition: ExportError.h:7
Node * getMemberValue(unsigned int index)
bool isValueTypeNumber() const
unsigned int getMemberCount() const
bool getValueAsBool() const
double getValueAsDouble() const
void * getUserData() const
@ STRING_TYPE
A node holding a string.
Definition: Node.h:15
void setAsLong(long long value)
NODE_VALUE_TYPE
Describes the kind of value a node holds.
Definition: Node.h:12
@ UINT_TYPE
A node holding an unsigned integer.
Definition: Node.h:17
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
long long getValueAsLong() const
NODE_NATURE getNodeNature() const
@ OBJECT_NATURE
Represents a node holding references to other nodes, via the named member accessors.
Definition: Node.h:31
@ VALUE_NATURE
Represents a leaf node, holding a final value being either a bool, string, int, uint,...
Definition: Node.h:30
@ LONG_TYPE
A node holding a long (8 bytes).
Definition: Node.h:18
Node * getMemberValue(const std::string_view &key)
@ BOOL_TYPE
A node holding a boolean.
Definition: Node.h:14
@ INT_TYPE
A node holding an integer.
Definition: Node.h:16
unsigned long long getValueAsUlong() const
void setAsDouble(double value)
NODE_NATURE
Describes the nature of a node.
Definition: Node.h:28
NODE_VALUE_TYPE getNodeValueType() const
@ NOT_VALUE_TYPE
A node which is an object or an array will have no value attached. In such case, this value is return...
Definition: Node.h:13
@ ULONG_TYPE
A node holding an unsigned long (8 bytes).
Definition: Node.h:19
Node * getArrayElement(unsigned int index)
int getValueAsInt() const
@ ARRAY_NATURE
Represents a node holding references to other nodes, via the indexed array accessors.
Definition: Node.h:32
void setAsUlong(unsigned long long value)
void setUserData(void *value)
unsigned int getArraySize() const